package Demo1;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 殇
 * Date: 2025-07-12
 * Time: 20:02
 */
interface Greeting{
    void greet();
}
public class OuterClass4 {
    public static void main(String[] args) {
        Greeting g=new Greeting(){
            @Override
            public void greet() {
                System.out.println("nihao");
            }
        };
        g.greet();
    }
}
